<template>
  <el-dialog
    top="30px"
    width="800px"
    title="附件"
    append-to-body
    :close-on-click-modal="false"
    :visible.sync="visible"
    :before-close="beforeClose"
  >
    <attach-main ref="main" v-bind="$attrs" v-on="$listeners"></attach-main>
  </el-dialog>
</template>

<script>
import AttachMain from '@/bigcredit/views/accept/letter/components/AttachMain'

export default {
  components: {
    AttachMain,
  },
  props: {
    visible: Boolean,
  },
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    beforeClose() {
      this.$emit('update:visible', false)
    },
  },
}
</script>

<style lang="scss" scoped>
.attach-title {
  font-size: 1.1rem;
  font-weight: bold;
}
</style>
